package com.itheima.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.domain.Courier;
public interface CourRespsitory extends JpaRepository<Courier, Integer>,JpaSpecificationExecutor<Courier>{

	//@Query(value="update Courier set deltag = '1' where id = ?")
	@Query(value = "update Courier set deltag='1' where id = ?")
	@Modifying
	@Transactional
	public void updateDelTag(Integer ids);
	
}
